import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:fluttertoast/fluttertoast.dart';

// All of our constant stuff

const kPrimaryColor = Color(0xFF366CF6);
const kSecondaryColor = Color(0xFFF5F6FC);
const kBgLightColor = Color(0xFFF2F4FC);
const kBgDarkColor = Color(0xFFEBEDFA);
const kBadgeColor = Color(0xFFEE376E);
const kGrayColor = Color(0xFF8793B2);
const kTitleTextColor = Color(0xFF30384D);
const kTextColor = Color(0xFF4D5875);
const kdefaultLightColor = Colors.orange;
const kNumRowWidth = 100.0; //单个表宽
const kNumRowHeight = 48.0; //表格高
const kDefaultPadding = 20.0;

const kDefaualtBgColor = Color.fromRGBO(244, 245, 246, 1);

class IconFont {
  static const String _family = 'MyIcons';
  IconFont._();
  static const IconData icon_tingzhi1 = IconData(0xe641, fontFamily: _family);
  static const IconData icon_Rrl_s_049 = IconData(0xe60a, fontFamily: _family);
  static const IconData icon_duigou_cu = IconData(0xe620, fontFamily: _family);
  static const IconData icon_afro_ = IconData(0xe602, fontFamily: _family);
  static const IconData icon_businessman =
      IconData(0xe608, fontFamily: _family);
  static const IconData icon_clown = IconData(0xe609, fontFamily: _family);
  static const IconData icon_flirt = IconData(0xe615, fontFamily: _family);
  static const IconData icon_wrench = IconData(0xe760, fontFamily: _family);
  static const IconData icon_filter_fill =
      IconData(0xe718, fontFamily: _family);
  static const IconData icon_yuangongguanli =
      IconData(0xe60d, fontFamily: _family);
  static const IconData icon_shezhi = IconData(0xe603, fontFamily: _family);
  static const IconData icon_gengduo = IconData(0xe67d, fontFamily: _family);
  static const IconData icon_qunzu = IconData(0xe6da, fontFamily: _family);
}

void afterRefresh() {
  Fluttertoast.showToast(webPosition: "center", msg: "刷新成功");
}

var transitonIn = <Effect>[
  FadeEffect(duration: 100.ms, curve: Curves.easeOut),
  const ScaleEffect(begin: Offset(0.5, 1), curve: Curves.easeIn)
];
